<?php
/*
	插件初始化
*/
namespace jy_yangjidan;
defined('BY_JYA') or exit('error');
function init($plugin){
	//定义本场景的一些独立,为空表示共用电商客的
	$plugin->syscolor=$plugin->plugin_setting('basic')['syscolor']?:'';
	$plugin->setting=$plugin->plugin_setting('basic');
	$plugin->plugins=array();
	$plugin->myji_step=array('小蛋鸡','童子鸡','青年鸡');
	$plugin->myji_status=array('待付款','健康喂养中','正在饥饿','已死亡','已结束','已寄卖');
	$plugin->myjiorder_status=array('待付款','已支付','已发货','已完成','已取消');
	$plugin->jilog_type=array('购买蛋鸡','喂养蛋鸡','加速蛋鸡成长','复活蛋鸡','生鸡蛋','饿1天减预测鸡蛋','寄卖鸡蛋','寄卖回购收益','寄卖收益','寄卖成鸡','鸡蛋提货');
	$plugin->feelog_type=array('购买蛋鸡','喂养饲料','委托平台投喂','付清赊账');
	$plugin->feelog_status=array('待付款','已支付');
	$plugin->cvlog_status=array('待收货CV','待结算CV','已结算','临时CV','过期CV','无效CV');
	$plugin->cvlog_type=array(
		'0'=>'购物奖励',
		'1'=>'租养消费奖励',
		'2'=>'分享朋友圈',
		'3'=>'直推租养奖励',
		'4'=>'下级购物奖励',
		'5'=>'浏览商品',
		'6'=>'转发商品链接',
		'7'=>'分享VIP奖励',
		'8'=>'谐粉丝群奖励',
		'9'=>'购买鸡蛋消耗',
		'10'=>'销售鸡蛋消耗',
		'11'=>'复活死亡鸡消耗',
	);
	$plugin->dj_huitype=array('每天回报一枚鸡蛋','周一至周五每天1枚');
	$plugin->jimai_status=array('待审核','寄卖中','已售完','已回购');
	$plugin->datatypes=array(
		'head'=>'头像',
		'nickname'=>'昵称',
		'qr'=>'二维码',
		'img'=>'图片',
		'text'=>'自定义文字',
	);
	$plugin->datapushs=array(
		'head'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'head',
						'width' => '80',
						'height' => '80',
		),
		'qr'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'qr',
						'width' => '80',
						'height' => '80',
		),
		'nickname'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'nickname',
						'width' => '120',
						'height' => '26',
		),
		'img'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'img',
						'width' => '200',
						'height' => '200',
		),
		'title'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'title',
						'width' => '226',
						'height' => '50',
		),
		'thumb'=>array(
						'left' => '0',
						'top' => '0',
						'type' => 'thumb',
						'width' => '316',
						'height' => '316',
		),
		'text'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'text',
						'width' => '260',
						'height' => '26',
						'value' => '自定义文字',
		),
	);
	$plugin->goodsdatademo=array(
		array(
						'left' => '110',
						'top' => '385',
						'type' => 'qr',
						'width' => '100',
						'height' => '100',
		),
		array(
						'left' => '116',
						'top' => '490',
						'type' => 'text',
						'width' => '100',
						'height' => '25',
						'size' => '9',
						'value' => '长按或扫描查看',
						'color'=>'#ddd',
		),
	);
}